﻿
using System;
using com.guojin.core.io;
using com.guojin.core.io.message;
using System.Collections.Generic;

namespace com.guojin.mj.net.message.login
{
    //代开房申请
    public class SHReplaceCreatRoomListRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 38;

        public SHReplaceCreatRoomListRet()
        {
        }

        private List<SHReplaceCreatRoom> _rcrl = new List<SHReplaceCreatRoom>();

        public List<SHReplaceCreatRoom> Rcrl
        {
            get
            {
                return _rcrl ;
            }

            set
            {
                _rcrl = value;
            }
        }

        public void decode(Input _in)
        {
            int len = _in.readInt();

            if (len > 0)
            {
                for (int i = 0; i < len; i++)
                {
                    SHReplaceCreatRoom rcr = new SHReplaceCreatRoom();
                    rcr.decode(_in);
                    _rcrl.Add(rcr);
                }
            }
        }

        public void encode(Output _out)
        {

        }

        public string toString()
        {
            return "SHReplaceCreatRoomListRet[ ]";
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public int getMessageId()
        {
            return ID;
        }
    }
}